package hyj.qx.websocket.enums;

public enum ErrorCode {
    USER_NOT_FOUND("USER_NOT_FOUND", "用户不存在,请先注册"),
    USER_UPDATENOT("USER_UPDATENOT","用户更新失败"),
    USER_ADDNOT("USER_ADDNOT","用户添加失败");

    private String code;
    private String message;

    ErrorCode(String code, String message) {
        this.code = code;
        this.message = message;
    }

    public String getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
